package nl.ypmits.utils.as3.stage.event {
	import flash.events.Event;		

	/**
	 * @author Merten
	 */
	public class SimpleStageEvent extends Event {
		
		public static const UPDATE:String = "onStageResizeEventUpdate";
		public static const FOCUS:String = "onFocus";
		public static const BLUR:String = "onBlur";
		
		public var percentageHorizontal:Number;
		public var percentageVertical:Number;
		
		public var height:Number;
		public var width:Number;
		
		public var offsetHeight:Number;
		public var offsetWidth:Number;
		
		public function SimpleStageEvent( type:String, bubbles:Boolean = false, cancelable:Boolean = false ) {
			super( type, bubbles, cancelable );	
		}
		
		public function hasRelative():Boolean {
			return percentageHorizontal > 0 && percentageVertical > 0;	
		}
	}
}
